$OpenBSD: patch-Source_CMakeLists_txt,v 1.6 2014/12/31 11:06:02 dcoppa Exp $

XXX: CMake's built-in ELF parser is broken on arm

--- Source/CMakeLists.txt.orig	Mon Dec 15 14:07:43 2014
+++ Source/CMakeLists.txt	Thu Dec 18 05:37:12 2014
@@ -16,7 +16,7 @@ if(CMAKE_CXX_PLATFORM_ID MATCHES "OpenBSD")
 else()
   CHECK_INCLUDE_FILE("elf.h" HAVE_ELF_H)
 endif()
-if(HAVE_ELF_H)
+if(HAVE_ELF_H AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "^arm")
   set(CMAKE_USE_ELF_PARSER 1)
 elseif(HAIKU)
   # On Haiku, we need to include elf32.h from the private headers
